<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-nested" prefix="nested"%>
<html:html>
<head>
<html:base />
<title><bean:message key="Application.Name" /></title>
<link href="css/formas.css" rel="stylesheet" type="text/css">
<link href="css/calendar.css" rel="stylesheet" type="text/css">
<logic:present name="req_msg">
	<script>
		alert("<bean:write name='req_msg'/>");
	</script>
</logic:present>
<script LANGUAGE="JavaScript" type="text/javascript" src="js/AnchorPosition.js"></script>
<script LANGUAGE="JavaScript" type="text/javascript" src="js/PopupWindow.js"></script>
<script LANGUAGE="JavaScript" type="text/javascript" src="js/date.js"></script>
<script LANGUAGE="JavaScript" type="text/javascript" src="js/CalendarPopup.js"></script>
<script language="javascript" type="text/javascript" src="js/util.js"></script>
<script language="javascript" type="text/javascript">
var cal_fechas;
cal_fechas = new CalendarPopup('div_cal');
</script>
<style type="text/css">
#div_cal {
background-color:#FF9933;
	position:absolute;
}
</style>
</head>
<body>
<%int int_i = 0; %>
<div id="div_cal"></div>
<table cellpadding="0" cellspacing="0" class="formas">
	<tr>
		<td>
		<table cellpadding="0" cellspacing="0" class="barraNavegacion">
			<tr>
				<td><html:link action="/academy_welcome?action=selectAcademy" 	styleClass="barraNavegacion"> <img src="images/icn_liga.gif" border="0">	<bean:message key="AcademyWelcome.Init" /></html:link> 
						 <html:link action="/teachers_crn_list" styleClass="barraNavegacion"><img src="images/icn_liga.gif" border="0"><bean:message key="CRN.list" />	</html:link> 
				</td>
			</tr>
		</table>
		<table cellpadding="0" cellspacing="0" class="titulo">
			<tr>
				<td class="iconos_imgs"><a
					href="mailto:<bean:message key="Application.mailto"/>"><img
					src="images/icn_correo.gif" width="18" height="18" border="0"></a></td>
				<td class="txt_titulo"><bean:message key="SubjectContent" /></td>
			</tr>
		</table>
		<table cellpadding="0" cellspacing="2" class="info_formas">
			<tr>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td class="formas-encabezado"><bean:message
					key="StudyPlan.subject.subjectData" /></td>
			</tr>
			<tr>
				<td>
				<table cellpadding="0" cellspacing="2" class="info_titulo">
					<tr> 
						<td class=""><strong><bean:message key="StudyPlan.subject"/></strong></td>
						<td class=""><bean:write name="crn_bean" property="materia_tk"/> - <bean:write name="crn_bean" property="materia_desc"/></td>
					</tr>
					<tr> 
						<td class=""><strong><bean:message key="TeacherList.Teacher"/></strong></td>
						<td class=""><bean:write name="crn_bean" property="maestro_tk" /> - <bean:write name="crn_bean" property="maestro_nombre"  /></td>
					</tr>
				</table>
				</td>
			</tr>
		</table>
		<table width="100%" border="0" cellpadding="0" cellspacing="0" class="info_formas">
		<form action="<html:rewrite action="/save_actualDates"/>"/ >		
	    <input type="hidden" name="type" value="ACTUAL" />
		<logic:iterate id="lst_units" name="lst_unitContent">		
			<tr>
				<td>&nbsp;</td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td width="9%" class="formas-encabezado"><bean:message key="Unit" /></td>
				<td width="70%" class="formas-encabezado"><bean:message key="Document.description" /></td>
				<td  width="21%" class="formas-encabezado"><bean:message key="SubjectContent.actualDate"/></td> 
			</tr>
			<tr>
				<td><bean:write name="lst_units" property="int_unitNumber"/></td>
				<td><bean:write name="lst_units" property="str_descripcion"/></td>				
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td colspan="2">				
				<table width="100%" border="0" cellpadding="2" cellspacing="0" class="info_formas">							
					<logic:present name="lst_units" parameter="arrL_topic">						
					<bean:define id="lst_topics" name="lst_units" property="arrL_topic"/>			
					<logic:iterate id="topics" name="lst_topics" >													
					<tr>
						<td>&nbsp;</td>
						<td>&nbsp;</td>
					</tr>		
					<tr>
						<td width="10%"><bean:write name="lst_units" property="int_unitNumber"/>.<bean:write name="topics" property="int_topicNumber"/></td>
						<td width="90%"><bean:write name="topics" property="str_descripcion"/></td>
					</tr>
					<tr>
						<td>&nbsp;</td>
						<td>
						<table width="100%" border="0" cellpadding="0" cellspacing="0" class="info_formas">
						<logic:present name="topics" parameter="arrL_subtopic">						
						<bean:define id="lst_subtopics" name="topics" property="arrL_subtopic"/>			
						<logic:iterate id="subtopics" name="lst_subtopics" >							
							<tr>
								<td width="15%"><bean:write name="lst_units" property="int_unitNumber"/>.<bean:write name="topics" property="int_topicNumber"/>.<bean:write name="subtopics" property="int_subtopicNumber"/></td>
								<td width="70%"><bean:write name="subtopics" property="str_descripcion"/></td>		
								<td width="15%" class="" > 
									<input type="text" size="10" readonly="readonly" name="str_actualDate<%=int_i%>" value="<bean:write name="subtopics" property="str_fechaImpartida"/>"/><a href="javascript: cal_fechas.select(document.getElementById('str_actualDate<%=int_i%>'),'cal_img<%=int_i%>','yyyy/MM/dd');"><img name="cal_img<%=int_i%>" src="images/img_calendario.gif" border="0" width="24" height="24" alt=""/></a>
									<input type="hidden" name="subtopic<%=int_i%>" value="<bean:write name="subtopics" property="int_subtopicId"/>"/>
								</td>						
							</tr>
							<%int_i++;%>
							</logic:iterate>
							</logic:present>
						</table>
						</td>
					</tr>
					<tr>
						<td>&nbsp;</td>
						<td>&nbsp;</td>
					</tr>					
					</logic:iterate>
					</logic:present>									
				</table>
				</td>
			</tr>						
			</logic:iterate>		
			<tr>
				<td colspan="8">
					<div align="center">
							<html:submit property="btn_aceptar" indexed="11"><bean:message key="Application.Accept" /></html:submit>
							<input type ="button" onclick="location.href='<html:rewrite action="/teachers_crn_list"/>';" value="<bean:message key='Application.Cancel'/>"/>
					</div>
				</td>
			</tr>		
			</form>
			</table>
		</td>
	</tr>
</table>
</body>
</html:html>
